package PTA.javajibenyufa;

import java.util.Scanner;

public class ex02 {
    public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    StringBuilder in = new StringBuilder();
    while(sc.hasNext()){
        int n = sc.nextInt();
        int begin = sc.nextInt();
        int end = sc.nextInt();
        for(int i=0;i<n;i++){
            in.append(i);
        }
        System.out.println(in.substring(begin,end));
    }

}
}